import request from '@/utils/request'

export default {
  detailList(dictTypeDTO){
    return request({
      url: `dictData/list`,
      method:'get',
      params: dictTypeDTO
    })
  },
  saveDict(dict){
    return request({
      url: `dictData/save`,
      method:'post',
      data:dict
    })
  },
  updateDict(dict){
    return request({
      url: `dictData/update`,
      method:'put',
      data:dict
    })
  },
  updateById(id){
    return request({
      url: `dictData/getById/${id}`,
      method:'get'
    })
  },
  deleteDict(id){
    return request({
      url: `dictData/delete/${id}`,
      method:'delete'
    })
  },

  queryType(){
    return request(({
      url:'dictData/findAll',
      method:'get'
    }))
  }
}
